Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit bfed126a7c17fd90551204afd0bbab3fac1441f9


Parents : 44d1d99
Author : Mark Qvist <mark@unsigned.io>
Date : 2025-01-21T16:44:24+01:00

Memory optimisations

Changes

1 files changed, 2 insertions(+), 2 deletions(-)


Diff

diff --git a/LXMF/LXMPeer.py b/LXMF/LXMPeer.py
index f4c522c..d133027 100644
--- a/LXMF/LXMPeer.py
+++ b/LXMF/LXMPeer.py
@@ -358,14 +358,14 @@ class LXMPeer:
@property
def handled_messages(self):
pes = self.router.propagation_entries.copy()
- hm = list(filter(lambda tid: self.destination_hash in self.router.propagation_entries[tid][4], pes))
+ hm = list(filter(lambda tid: self.destination_hash in pes[tid][4], pes))
self._hm_count = len(hm); del pes
return hm
@property
def unhandled_messages(self):
pes = self.router.propagation_entries.copy()
- um = list(filter(lambda tid: self.destination_hash in self.router.propagation_entries[tid][5], pes))
+ um = list(filter(lambda tid: self.destination_hash in pes[tid][5], pes))
self._um_count = len(um); del pes
return um


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────